<!--代理资料设定 -->
<form action="" class="form-horizontal" id="agencyInf">
	<div class="form-group">
	    <label class="col-sm-3 control-label">账号:</label>
	    <div class="col-sm-9 pt7">
	      	111
	    </div>
  	</div>
	<div class="form-group">
	    <label  class="col-sm-3 control-label">密码:</label>
	    <div class="col-sm-9">
	      	<input type="password" class="form-control pas"  placeholder="password" name="password">
	      	<span class="c_red">&nbsp;&nbsp;*数字及字母a-z长度4-12位</span>
	    </div>
	</div>
	<div class="form-group">
	    <label  class="col-sm-3 control-label">确认密码:</label>
	    <div class="col-sm-9">
	      	<input type="password" class="form-control pas"  placeholder="password" name="password">
	      	<span class="c_red">&nbsp;&nbsp;*数字及字母a-z长度4-12位</span>	
	    </div>
	</div>
	<div class="form-group">
	    <label  class="col-sm-3 control-label">名称:</label>
	    <div class="col-sm-9">
		  	<input type="text" class="form-control"  placeholder="代理客服" name="service">
		  	<span class="c_red">&nbsp;&nbsp;*中文或字母a-z长度2-12位</span>	
	    </div>
	</div>
    <div class="form-group">
        <label class="col-sm-3 control-label">彩票-代理占成:</label>
        <div class="col-sm-9 pt7">
            <select class="form-control" name="" class="">
                <option v-for="discount in discounts" v-bind:value="discount.id">{{discount.name}}</option>
            </select>
        </div>
    </div>
</form>
<script type="text/javascript">
    var discounts = [];
    $(function() {
        get_discount_list();
    });
    var get_discount_list = function () {
        axios.post('member/get_discount_list', {
            id: 1335
        }).then(function (response) {
            $.each(response.data.list, function (k, v) {
                discounts.push(v);
            });
        }).catch(function (error) {
            console.log(error);
        });
    }
    app = new Vue({
        'el':'#agencyInf',
        'data': {
            discounts:discounts
        }
    });
</script>
